﻿using Microsoft.SharePoint;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace GFE.SharePoint.Interfaces
{
    public interface IGFEModelFactory<Z>
    {
        Z CreateEmpty(Z model);
        Z CreateFromDataRow(DataRow dataRow, Z model);
        Z CreateFromListItem(SPListItem listItem, Z model);
        string CreateViewFields();
        void CreateSPListItem(Z model, ref SPListItem listItem);
        Z CreateFromXelement(XElement element, Z model);
    }
}
